<template>
	<view>
		<view class="container">
			<view class="fs32 col-black mb30 fwb">{{article.name}}</view>
			<view class="fs28 col-black text">
				<rich-text :nodes="article.content"></rich-text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			article_id:0,
			article:{}
		};
	},
	onLoad(options) {
		this.article_id = options.article_id || 0;
		this.fetchArticle();
	},
	methods: {
		fetchArticle(){
			this.$core.get({url:'xiluedu.article/detail',data:{article_id:this.article_id},success:(ret)=>{
				 this.article = ret.data;
			}});
		},
	}
};
</script>

<style scoped>
.container {
	padding: 60rpx 30rpx 30rpx;
}
.container .text {
	line-height: 48rpx;
}
</style>
